<template>
      <el-form-item label="">
        <el-select v-model="baseLevelId" placeholder="班型">
          <el-option label="全部" value=""></el-option>
          <el-option v-for="(level,index) in condition.levelObj.list" :label="level.name" :value="level.id"></el-option>
        </el-select>
        </el-select>
      </el-form-item>
</template>
<script>
import { mapActions, mapState, mapGetters } from 'vuex'
export default {
  name:'level',
  props:['levelId'],
  data () {
      return {
          baseLevelId:this.levelId
      }
  },
  computed: {
    ...mapState(['condition']),
  },
  watch: {
      baseLevelId(val){
          this.$emit('input',val)
      }
  },
  created(){
    this.findBaseLevelPage({ pageIndex: 1, pageSize: 1000000 })
  },
  methods:{
    ...mapActions(['findBaseLevelPage']),
  }
}
</script>

